package com.apes.enquiry.supplier.santouliubi.model;

import com.apes.framework.jpa.BaseModel;
import com.apes.framework.jpa.DefaultPersistListener;
import com.apes.framework.jpa.audit.Auditing;
import com.apes.framework.jpa.comment.Comment;
import com.apes.framework.jpa.generator.ApesGenerator;
import lombok.Getter;
import lombok.Setter;
import org.hibernate.annotations.DynamicInsert;
import org.hibernate.annotations.DynamicUpdate;
import org.hibernate.annotations.SelectBeforeUpdate;

import javax.persistence.*;

/**
 * 类描述：
 *
 * @ClassName SantouEnquiry
 * @Description 描述
 * @Author wushilong
 * @Date 2022/12/23 11:52
 * @Version 1.0
 */

@Auditing
@Getter
@Setter
@SelectBeforeUpdate
@DynamicInsert
@DynamicUpdate
@Entity
@EntityListeners(DefaultPersistListener.class)
@Table(name = SantouEnquiry.CONST_TABLE_NAME)
public class SantouEnquiry extends BaseModel {
    public static final String CONST_TABLE_NAME = "sp_santou_enquiry";

    @Id
    @Column(name = "id", length = 10)
    @ApesGenerator(code = CONST_TABLE_NAME, name = "三头六臂询价记录")
    @Comment("编码")
    private String id;

    @Column(name = "sid", length = 24)
    @Comment("单据号")
    private String sid;

    @Column(name = "product_number", length = 24)
    @Comment("产品编号")
    private String productNumber;

    @Column(name = "sale_price", length = 24)
    @Comment("售价(元)")
    private String salePrice;

    @Column(name = "quantity", length = 24)
    @Comment("库存")
    private String quantity;
}
